import request from '@/utils/request'
export default{
    getLendReturns(lendId){
        return request({
            url:`/admin/core/lendReturn/lend/${lendId}`,
            method:"GET"
        })
    },
    getLendItemReturns(lendId){
        return request({
            url:`/admin/core/lendItemReturn/lend/${lendId}`,
            method:"GET"
        })
    },
    makeLoan(id){
        return request({
            url:`/admin/core/lend/makeLoan/${id}`,
            method:"PUT"
        })
    },
    getById(id){
        return request({
            url:`/admin/core/lend/${id}`,
            method:"GET"
        })
    },
    publish(id,status){
        return request({
            url:`/admin/core/lend/status/${id}/${status}`,
            method:"PUT"
        })
    },
    list(){
        return request({
            url:'/admin/core/lend',
            method:"GET"
        })
    }
}